<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>v-show</title>
</head>
<body>

<div id="app">
<!-- v-show实际上是添加一个样式  style="display: none;" -->
  <h2 v-show="isShow">显示</h2>

<!--  v-if实际上是dom里面删除添加操作的-->
  <h2 v-if="isShow">显示</h2>
  <br>
  <h3>{{isShow}}</h3>
</div>
<script src="../js/vue.js"></script>
<script>
  const app = new Vue({
    el: '#app',
    data: {
      message: '你好',
      isShow: true
    }
  })
</script>

</body>
</html>
